home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / archiver / pdtar.zip / MAKEFILE.UNX < prev    next >
Text File  |  1987-02-17  |  1KB  |  67 lines

  1. # Makefile for public domain tar program.
  2. # @(#)Makefile 1.13    86/10/29
  3.  
  4. # Berserkeley version
  5. #DEFS = -DBSD42
  6. #LIBS = 
  7. #LINTFLAGS = -abchx
  8. #DEF_AR_FILE = \"/dev/rmt8\"
  9. #DEFBLOCKING = 20
  10.  
  11. # USG version
  12. DEFS = -DUSG
  13. LIBS = -lndir
  14. LINTFLAGS = -bx
  15. DEF_AR_FILE = \"/dev/rmt8\"
  16. DEFBLOCKING = 20
  17.  
  18. # UniSoft's Uniplus SVR2 with NFS
  19. #DEFS = -DUSG -DUNIPLUS -DNFS -DSVR2
  20. #LIBS = -lndir
  21. #LINTFLAGS = -bx
  22. #DEF_AR_FILE = \"/dev/rmt8\"
  23. #DEFBLOCKING = 20
  24.  
  25. # V7 version
  26. #DEFS = -DV7 -Dvoid=int
  27. #LIBS = -lndir
  28. #LINTFLAGS = -abchx
  29. #DEF_AR_FILE = \"/dev/rmt8\"
  30. #DEFBLOCKING = 20
  31.  
  32. CFLAGS = $(COPTS) $(DEFS) \
  33.     -DDEF_AR_FILE=$(DEF_AR_FILE) \
  34.     -DDEFBLOCKING=$(DEFBLOCKING)
  35. # next line for Debugging
  36. COPTS = -g
  37. # next line for Production
  38. #COPTS = -O
  39.  
  40. # Add things here like getopt, readdir, etc that aren't in your
  41. # standard libraries.
  42. SUBSRC=    
  43. SUBOBJ=    
  44.  
  45. SRCS =    tar.c create.c extract.c buffer.c getoldopt.c list.c names.c \
  46.     port.c $(SUBSRC)
  47. OBJS =     tar.o create.o extract.o buffer.o getoldopt.o list.o names.o \
  48.     port.o $(SUBOBJ)
  49. AUX =    README PORTING Makefile TODO tar.1 tar.5 tar.h port.h
  50.  
  51. tar:    $(OBJS)
  52.     cc -o tar $(COPTS) $(OBJS) $(LIBS)
  53.  
  54. lint:    $(SRCS)
  55.     lint $(LINTFLAGS) $(CFLAGS) $(SRCS)
  56.  
  57. clean:
  58.     rm -f errs *.o tar
  59.  
  60. tar.shar: $(SRCS) $(AUX)
  61.     shar >tar.shar $(AUX) $(SRCS)
  62.  
  63. tar.tar.Z: $(SRCS) $(AUX)
  64.     /bin/tar cf - $(AUX) $(SRCS) | compress -v >tar.tar.Z
  65.  
  66. $(OBJS): tar.h port.h
  67.